import request from "@/utils/request"

export function getMessageList(params) {
  return request({
    url: "/api/internal/message",
    method: "get",
    params,
  })
}

export function getMessageDetail(id) {
  return request({
    url: `/api/internal/message/${id}`,
    method: "get",
  })
}

export function markReadMessage(data) {
  return request({
    url: `/api/internal/message/read`,
    method: "put",
    data,
  })
}
